package com.zhongfl.crm.service.boss;

import com.github.pagehelper.PageInfo;
import com.zhongfl.crm.model.boss.*;

import java.util.List;

/**
 * 权证管理
 * Created by zzk on 2018/10/22.
 */
public interface WarrantService {

    /**
     * 根据条件查询进抵任务
     */
    PageInfo<WarrantWorkOrderDetail> findWarrantList(WorkOrderQuery workOrderQuery);

    /**
     * 保存上传凭证
     *
     * @param uploadInfo
     */
    void saveUploadInfo(RxWarrantWorkOrderFileUpload uploadInfo);



    /**
     * 根据工单号查找权证信息
     * @param workOrderNo
     * @return
     */
    List<WarrantWorkOrderAttachment> selectByWorkOrderNo(String workOrderNo);

    /**
     * 根据工单号获取房本照片
     * @param workOrderNo
     * @return
     */
    List<OrderAttachment> getHousePic(String workOrderNo);

    /**
     * 根据工单号获取凭证照片
     * @param workOrderNo
     * @return
     */
    List<OrderAttachment> getEvPic(String workOrderNo);


    /**
     * 根據id刪除圖片
     * @param id
     */
     void delete(Integer id);
}
